<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
     <!-- 实例化一个book JavaBean对象,并存储到ActionContext中 -->
    <s:bean id="book" name="cn.weiyang.entity.Book">
       <s:param name="isbn" value="'a023'"/>
       <s:param name="name" value="'奋斗'"/>
    </s:bean>
    编号：<s:property value="#book.isbn"/>
    书名：<s:property value="#book.name"/><hr/>
    <c:forEach items="${book.allBooks}" var="book">
        <li>${book}</li>
    </c:forEach>
    
    <hr/><s:bean id="today" name="java.util.Date"/>
    <h2>
       <s:date name="#today" format="yyyy-MM-dd hh:mm:ss"/>
    </h2>
</body>
</html>